<?php
/**
 * Created by PhpStorm.
 * User: xuaq
 * Date: 2019/1/30
 * Time: 14:32
 */

return [
    'topics' => [
        ['name' => 'MyJob', 'workerMinNum' => 1, 'workerMaxNum' => 20],
        ['name' => 'MyJob2', 'workerMinNum' => 3, 'workerMaxNum' => 10],
        ['name' => 'MyJob3', 'workerMinNum' => 1, 'workerMaxNum' => 10],
    ],
    // redis
//    'queue' => [
//        'class' => '\Swimtobird\Jobs\Queue\RedisTopicQueue',
//        'host' => '10.0.75.1',
//        'port' => 6379,
//        //'password'=> 'pwd',
//        //'db'=> '0',
//    ],
     //rabbitmq
     'queue'   => [
         'class'         => 'App\Utils\Queue\RabbitmqTopicQueue',
         'host'          => '192.168.199.110',
         'user'          => 'admin',
         'pass'          => 'admin',
         'port'          => '5672',
         'vhost'         => '/',
         'exchange'      => 'php.amqp.ext',
     ],
];